package com.niguang.work.api.enums;

import lombok.Getter;

@Getter
public enum ApplyNodeStepEnum {

    APPLY_NODE(1, "审核分发"),

    ZHENG_GAI_NODE(2, "整改处理"),

    FU_CHA_NODE(3, "复查处理"),

    ZHENG_GAI_BO_HUI_NODE(4, "整改驳回"),

    ZHUAN_FA_NODE(5, "转发");

    private Integer index;

    private String desc;

    ApplyNodeStepEnum(Integer index, String desc) {
        this.index = index;
        this.desc = desc;
    }


    public static String getName(Integer index) {
        for (ApplyNodeStepEnum c : ApplyNodeStepEnum.values()) {
            if (c.index.equals(index)) {
                return c.desc;
            }
        }
        return "";
    }
}
